{"ast":null,"code":"import React from 'react';\nimport { isFragment } from 'react-is';\nexport default function toArray(children) {\n  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var ret = [];\n  React.Children.forEach(children, function (child) {\n    if ((child === undefined || child === null) && !option.keepEmpty) {\n      return;\n    }\n    if (Array.isArray(child)) {\n      ret = ret.concat(toArray(child));\n    } else if (isFragment(child) && child.props) {\n      ret = ret.concat(toArray(child.props.children, option));\n    } else {\n      ret.push(child);\n    }\n  });\n  return ret;\n}","map":{"version":3,"names":["React","isFragment","toArray","children","option","arguments","length","undefined","ret","Children","forEach","child","keepEmpty","Array","isArray","concat","props","push"],"sources":["/data/messenger.client/node_modules/rc-util/es/Children/toArray.js"],"sourcesContent":["import React from 'react';\nimport { isFragment } from 'react-is';\nexport default function toArray(children) {\n  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var ret = [];\n  React.Children.forEach(children, function (child) {\n    if ((child === undefined || child === null) && !option.keepEmpty) {\n      return;\n    }\n    if (Array.isArray(child)) {\n      ret = ret.concat(toArray(child));\n    } else if (isFragment(child) && child.props) {\n      ret = ret.concat(toArray(child.props.children, option));\n    } else {\n      ret.push(child);\n    }\n  });\n  return ret;\n}"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,UAAU;AACrC,eAAe,SAASC,OAAO,CAACC,QAAQ,EAAE;EACxC,IAAIC,MAAM,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;EACnF,IAAIG,GAAG,GAAG,EAAE;EACZR,KAAK,CAACS,QAAQ,CAACC,OAAO,CAACP,QAAQ,EAAE,UAAUQ,KAAK,EAAE;IAChD,IAAI,CAACA,KAAK,KAAKJ,SAAS,IAAII,KAAK,KAAK,IAAI,KAAK,CAACP,MAAM,CAACQ,SAAS,EAAE;MAChE;IACF;IACA,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;MACxBH,GAAG,GAAGA,GAAG,CAACO,MAAM,CAACb,OAAO,CAACS,KAAK,CAAC,CAAC;IAClC,CAAC,MAAM,IAAIV,UAAU,CAACU,KAAK,CAAC,IAAIA,KAAK,CAACK,KAAK,EAAE;MAC3CR,GAAG,GAAGA,GAAG,CAACO,MAAM,CAACb,OAAO,CAACS,KAAK,CAACK,KAAK,CAACb,QAAQ,EAAEC,MAAM,CAAC,CAAC;IACzD,CAAC,MAAM;MACLI,GAAG,CAACS,IAAI,CAACN,KAAK,CAAC;IACjB;EACF,CAAC,CAAC;EACF,OAAOH,GAAG;AACZ"},"metadata":{},"sourceType":"module"}